﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeviceSDK.Park    
{
    class CarColorID
    {
        private static string _carcolor = "深浅白灰黄粉红绿蓝棕";

        public static int GetID(string color)
        {
            for (int i = 0; i < _carcolor.Length; i++)
            {
                if (_carcolor[i].Equals(color))
                    return i;
            }

            return 0;
        }
    }
}
